package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "StudentAndExam")
public class StudentAndExam extends BaseModel {	//学生考试信息
	@ManyToOne(cascade = CascadeType.REFRESH)
	private User sutdentd;     //学生id
	@ManyToOne(cascade = CascadeType.REFRESH)
	private ExamClassInfo examClassInfoId;     //考试班级id
	private String uniqueCode;     //准考证号
	private Integer examStatus;     //考试完成状态
	private Double examScores;     //考试成绩
	private Double dailyScore;     //平时成绩
	private boolean isAllowToExam;     //考试资格
	private Integer applyDelayedExam;     //申请缓考
	private Integer correctStatus;     //批改状态


}

